import request from "@/router/axios";

export function fetchList(query) {
  return request({
    url: "/stm/swstticketpettyadd/page",
    method: "get",
    params: query
  });
}

export function addObj(obj) {
  return request({
    url: "/stm/swstticketpettyadd",
    method: "post",
    data: obj
  });
}

export function getObj(id) {
  return request({
    url: "/stm/swstticketpettyadd/" + id,
    method: "get"
  });
}

export function delObj(id) {
  return request({
    url: "/stm/swstticketpettyadd/" + id,
    method: "delete"
  });
}

export function putObj(obj) {
  return request({
    url: "/stm/swstticketpettyadd",
    method: "put",
    data: obj
  });
}

export function reviewSwTicket(obj) {
  return request({
    url: "/stm/swstticketpettyadd/reviewSwTicket",
    method: "get",
    params: obj
  });
}

export function getNeedConfirmData(obj) {
  return request({
    url: "/stm/swstticketpettyadd/query/needConfirmData",
    method: "post",
    data: obj
  });
}

export function confirm(id) {
  return request({
    url: "/stm/swstticketpettyadd/confirm/" + id,
    method: "get"
  });
}

export function confirmAll(obj) {
  return request({
    url: "/stm/swstconductorsettle/confirmAll",
    method: "post",
    data: obj
  });
}
